import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class LoginAction  {
    private String account;
    private String password;

    public String getAccount() { return account; }
    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {return password; }
    public void setPassword(String password) {
        this.password = password;
    }

    public String userlogin(){

        if(account.equals("20161316") && password.equals("20161316")){
            return "usersuccess";
        } else{
            return "loginfail";
        }
    }

    public String adminlogin(){
        if(account.equals(password)){
            return "adminsuccess";
        } else{
            return "loginfail";
        }
    }
}
